]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lookingGlass: Include ScrollView in inspector styling
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 11 Jul 2024 17:39:04 +0000 (19:39 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 11 Jul 2024 17:50:03 +0000 (19:50 +0200)
All styling currently happens on the ScrollView child, which
means that instead of a scrollbar inside the dialog to move
the content, we have a scrollbar next to the dialog that moves
the dialog as a whole.

Fix this by simply moving the style classes to the up-most parent.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3414>

js/ui/lookingGlass.js

index 9877008774d8201b8765973154e8caa838453d54..e4830609056a725889a9eef8023cb4e6af75a596 100644 (file)
@@ -387,6 +387,8 @@ const ObjInspector = GObject.registerClass(
 class ObjInspector extends St.ScrollView {
     _init(lookingGlass) {
         super._init({
+            name: 'LookingGlassPropertyInspector',
+            style_class: 'lg-dialog',
             pivot_point: new Graphene.Point({x: 0.5, y: 0.5}),
         });
 
@@ -396,8 +398,6 @@ class ObjInspector extends St.ScrollView {
         this._parentList = [];
 
         this._container = new St.BoxLayout({
-            name: 'LookingGlassPropertyInspector',
-            style_class: 'lg-dialog',
             vertical: true,
             x_expand: true,
             y_expand: true,